package com.demo;

import com.okhttp.annotations.ApiResponseHandler;
import com.okhttp.annotations.ApiGenerateService;
import com.okhttp.retrofit.BaseResponseBodyHandler;
import com.okhttp.retrofit.BaseResponseHandler;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

@ApiGenerateService(value = BaseResponseHandler.class)
public interface Net3 {


  @ApiResponseHandler(
      handler = BaseResponseBodyHandler.class
  )
  @FormUrlEncoded
  @POST("city")
  public Call<ResponseBody> doGet2(@Field("postTest") String test);



  @ApiResponseHandler(
      handler = ResultBodyHandler.class,
      genericity = DataBean.class
  )
  @FormUrlEncoded
  @POST("city")
  public Call<ResponseBody> doGet3(@Field("postTest") String test);



  @ApiResponseHandler(
      handler = ResultHandler2.class,
      genericity = DataBean.class
  )
  @FormUrlEncoded
  @POST("city")
  public Call<Result<DataBean>> doGet4(@Field("postTest") String test);


}
